/**
 * Copyright 2015 ABSir's Studio
 * 
 * All right reserved
 *
 * Create on 2015年7月6日 上午11:23:57
 */
package com.absir.appserv.master.api;

import com.absir.server.value.Server;

/**
 * @author absir
 *
 */
@Server
public class api_any {

	public LoginStatus login() {
		LoginStatus status = new LoginStatus();
		status.status = "ok";
		
		return status;
	}

	public void paying() {
		System.out.println("call paying");
	}

	public void payed() {
		System.out.println("call payed");
	}
	
	/**
	 * @author absir
	 *
	 */
	public class LoginStatus {
		public String status;
		public LoginData data;
		public LoginCommon common;
		public String ext;
	}
	
	public interface LoginData {}
	
	public static class LoginSuccessData implements LoginData {
		public String id;
		public String name;
		public String avatar;
		public String sex;
		public String area;
		public String nick;
		public String access_token;
		public String refresh_token;
	}
	
	public static class LoginErrorData implements LoginData {
		public String error;
		public String error_no;
	}
	
	public static class LoginCommon {
		public String channel;
		public String user_sdk;
		public String uid;
		public String server_id;
	}
}
